using UnityEngine;
using System.Collections;

public class Door : Trap {


    public Transform[] doorsConnected;
	// Use this for initialization
    private bool _picked = false;
    public override void SetTrapType()
    {
        typeTrap = Const.TRAP_TYPE.BONUS;
        activated = true;
    }

    public override IEnumerator toggleTrap()
    {
        yield return new WaitForSeconds(0.1f);
    }

    public override void trapActivated(Collider _archelogist)
    {
        Debug.Log("jnkj");
        if (!_picked)
        {
            PlayerManager.Instance.NbStar++;
            this.renderer.enabled = false;
            Debug.Log("jnkj");
        }
    }
}
